package com.model.vo.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OperLogVO {

    @ApiModelProperty(value = "操作日志ID",required = true)
    private Long sysOperLogId;

    @ApiModelProperty(value = "模块标题",required = true)
    private String title;

    @ApiModelProperty(value = "业务类型（0其它 1新增 2修改 3删除）",allowableValues = "0,1,2,3",required = true)
    private Integer businessType;

    @ApiModelProperty(value = "方法名称",required = true)
    private String method;

    @ApiModelProperty(value = "请求方式",required = true)
    private String requestMethod;

    @ApiModelProperty(value = "操作类别（0其它 1后台用户 2手机端用户）",allowableValues = "0,1,2",required = true)
    private Integer operatorType;

    @ApiModelProperty(value = "操作人员",required = true)
    private String operName;

    @ApiModelProperty(value = "部门名称",required = true)
    private String deptName;

    @ApiModelProperty(value = "请求URL",required = true)
    private String operUrl;

    @ApiModelProperty(value = "主机地址",required = true)
    private String operIp;

    @ApiModelProperty(value = "操作地点",required = true)
    private String operLocation;

    @ApiModelProperty(value = "请求参数",required = true)
    private String operParam;

    @ApiModelProperty(value = "返回参数",required = true)
    private String jsonResult;

    @ApiModelProperty(value = "操作状态（0正常 1异常）",allowableValues = "0,1",required = true)
    private Integer status;

    @ApiModelProperty(value = "错误消息",required = true)
    private String errorMsg;

    @ApiModelProperty(value = "创建时间(yyyy-MM-dd HH:mm:ss)",required = true)
    private Date createTime;



}
